import Vue from 'vue'
import Router from 'vue-router'
// import input from '../pages/infoCollection/input.vue'
const Map = () => import('../pages/map/Map.vue')



// 解决重复点击路由报错的BUG
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch((err) => err)
}
const originalReplace = Router.prototype.replace;
Router.prototype.replace = function replace(location) {
  return originalReplace.call(this, location).catch(err => err);
};

Vue.use(Router)

let router = new Router({
  routes: [
    {
      path: '/',
      name: 'map',
      component: Map
    },
  ]
})

export default router
